<template>
  <div class="search">
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  beforeCreate() {
    // 生成背景颜色
    document
      .querySelector("body")
      .setAttribute("style", "background-color:#f5f5f5");
  },
   beforeDestroy() {
    document.querySelector("body").removeAttribute("style");
  },
};
</script>

<style>
</style>